package com.dy.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dy.dto.UserDTO;
import com.dy.dto.UserLoginDTO;
import com.dy.entity.User;
import com.dy.vo.UserVO;

/**
 * @Author: dy
 * @date: 2024/5/7 12:46
 * @ClassDescription:
 */
public interface UserService extends IService<User> {

    /**
     * 用户注册
     * @param dto dto
     * @return {@link Boolean}
     */
    Boolean register(UserDTO dto);


    /**
     * 登录
     * @param dto dto
     * @return {@link UserVO}
     */
    UserVO login(UserLoginDTO dto);
}
